﻿using System;
using System.Collections.Generic;

#nullable disable

namespace ZH.GPT.Infrastructures.Entities
{
    /// <summary>
    /// 用户实体
    /// </summary>
    //public partial class User
    //{
    //    /// <summary>
    //    /// 用户ID
    //    /// </summary>
    //    public Guid Id { get; set; }

    //    /// <summary>
    //    /// 账号
    //    /// </summary>
    //    public string Account { get; set; }

    //    /// <summary>
    //    /// 密码
    //    /// </summary>
    //    public string Password { get; set; }

    //    /// <summary>
    //    /// 名称
    //    /// </summary>
    //    public string Name { get; set; }

    //    /// <summary>
    //    /// 是否是管理员
    //    /// </summary>
    //    public sbyte? IsAdmin { get; set; }

    //    /// <summary>
    //    /// 是否是超级管理员
    //    /// </summary>
    //    public sbyte? IsSuperAdmin { get; set; }

    //    /// <summary>
    //    /// 是否活跃
    //    /// </summary>
    //    public sbyte? IsActive { get; set; }

    //    /// <summary>
    //    /// 公司ID
    //    /// </summary>
    //    public Guid? TenantId { get; set; }

    //    /// <summary>
    //    /// 创建时间
    //    /// </summary>
    //    public DateTime? Created { get; set; }

    //    /// <summary>
    //    /// 最后修改时间
    //    /// </summary>
    //    public DateTime? Modified { get; set; }

    //    ///// <summary>
    //    ///// 部门
    //    ///// </summary>
    //    //public Guid? DepartmentId { get; set; }

    //    /// <summary>
    //    /// 余额
    //    /// </summary>
    //    public decimal? Balance { get; set; }
    //    /// <summary>
    //    /// 剩余token
    //    /// </summary>
    //    public decimal? BalanceToken { get; set; }
    //}


    public partial class User
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 是否活跃
        /// </summary>
        public sbyte? Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? ModifiedTime { get; set; }
        ///// <summary>
        ///// 上次登录时间
        ///// </summary>
        //public DateTime? LastLoginTime { get; set; }
        /// <summary>
        /// 是否删除 标识该行数据是否被删除 0未删除 1已删除 
        /// </summary>
        public short IsDel { get; set; } = 0;
        /// <summary>
        /// 余额
        /// </summary>
        public decimal? Balance { get; set; }
        /// <summary>
        /// 剩余token
        /// </summary>
        public decimal? BalanceToken { get; set; }

    }
}
